From 031c56dceacb71af572d133e049f1cd78cbda3e9 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 8 May 2025 14:03:58 +0800 Subject: [PATCH] fix(shell_integration/macOS/FileProviderUIExt): Add userAgent as separate property in share table view data source Signed-off-by: Claudio Cambra --- .../FileProviderUIExt/Sharing/ShareTableViewDataSource.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Sharing/ShareTableViewDataSource.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Sharing/ShareTableViewDataSource.swift index dd8e2f796..1784be153 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Sharing/ShareTableViewDataSource.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Sharing/ShareTableViewDataSource.swift @@ -36,6 +36,7 @@ class ShareTableViewDataSource: NSObject, NSTableViewDataSource, NSTableViewDele private(set) var shares: [NKShare] = [] { didSet { Task { @MainActor in sharesTableView?.reloadData() } } } + private(set) var userAgent: String = "Nextcloud-macOS/FileProviderUIExt" private(set) var account: Account? { didSet { guard let account = account else { return } @@ -45,7 +46,7 @@ class ShareTableViewDataSource: NSObject, NSTableViewDataSource, NSTableViewDele user: account.username, userId: account.username, password: account.password, - userAgent: "Nextcloud-macOS/FileProviderUIExt", + userAgent: userAgent, nextcloudVersion: 25, groupIdentifier: "" ) -- 2.30.2